package com.alcatel_lucent.osp.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by guoshunw on 2014/10/8.
 */

@Controller
@RequestMapping("/test/webmvc")
public class SampleController {

    @RequestMapping("/greeting")
    public String greeting(Model model){
        model.addAttribute("message", "Hello World.");

        return "hello";
    }
}
